package com.wolf.service.impl;

import com.wolf.pojo.Wl_coupon;
import com.wolf.repository.Wl_couponMapper;
import com.wolf.service.Wl_couponService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Wl_couponServiceImpl implements Wl_couponService{

    @Resource
    Wl_couponMapper wl_couponMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_couponMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_coupon record) {
        return wl_couponMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_coupon record) {
        return wl_couponMapper.insertSelective(record);
    }

    @Override
    public Wl_coupon selectByPrimaryKey(String id) {
        return wl_couponMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_coupon record) {
        return wl_couponMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_coupon record) {
        return wl_couponMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_coupon> getAll() {
        return wl_couponMapper.getAll();
    }

    @Override
    public List<Wl_coupon> getByStatus() {
        return wl_couponMapper.getByStatus();
    }

    @Override
    public List<Wl_coupon> fuzzyQuery(String starttime, String expiretime, String categoryid, String couponname, String couponcode, String status) {
        return wl_couponMapper.fuzzyQuery(starttime,expiretime,categoryid,couponname,couponcode,status);
    }
}
